<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="UTF-8">
		<title>修改运营商</title>
		<link rel="stylesheet" type="text/css" href="../statics/css/global.css">
		<link rel="stylesheet" type="text/css" href="../statics/css/form.css" />
		<link rel="stylesheet" type="text/css" href="../statics/css/add.css" />
		<link rel="stylesheet" type="text/css" href="../statics/css/popup.css" />
		<link rel="stylesheet" type="text/css" href="../statics/css/upload.css" />
		<link rel="stylesheet" type="text/css" href="../statics/css/layui.css" />
		<script type="text/javascript" src="../statics/js/jquery-3.3.1.js"></script>
	
	</head>

	<body>
		<div class="container">
			<h1 class="tabTitle"><a href="/piaoniu/shops/entrance"><img src="../statics/images/xjt.png"/></a>修改运营商</h1>
			<div class="info">
			   	<form action="/piaoniu/shops/updatashops" method="post"   class="formSheet">
					
					<dl>
						<dt><span>运营商编号</span></dt>
						<dd>
							<div class="fbox">
								<input type="text" class="textStyle" value="${shops[0].shopsId}" id="userName" name="shopsId"  readonly="true"  style="width:360px;"  />
							</div>
							<span id="userNameText" class="txtInfo">不能修改该</span>
						</dd>
					</dl>
					
					<dl>
						<dt><span>运营商姓名</span></dt>
						<dd>
							<div class="fbox">
								<input type="text" class="textStyle"  value="${shops[0].shopsName}"  id="userName" name="shopsName" style="width:360px;"  />
							</div>
						</dd>
					</dl>
					<dl>
						<dt><span>性别</span></dt>
						<dd>
							<div class="fbox">
								<input type="radio" value=" 1"  name="gender" class="radioStyle" checked="checked" /> 男&nbsp;&nbsp;&nbsp;&nbsp;
								<input type="radio" value=" 0"  name="gender" class="radioStyle" /> 女
							</div>
						</dd>
					</dl>
					<dl>
						<dt><span>身份证号</span></dt>
						<dd>
							<div class="fbox">
								<input type="text" class="textStyle"  value=" ${shops[0].idNumder}"   name="idNumder" style="width:360px;"  />
							</div>
						</dd>
					</dl>
					<dl>
						<dt><span>运营商ID</span></dt>
						<dd>
							<div class="fbox">
								<input type="text" class="textStyle"  value=" ${shops[0].shopsNumber}"  id="userName" name="shopsNumber"  readonly="true" style="width:360px;"  />
							</div>
							<span id="userNameText" class="txtInfo">不能修改该</span>
						</dd>
					</dl>
					<dl>
						<dt><span>运营商权限</span></dt>
						<dd>
							<div class="fbox">
								<select class="selectStyle"  name="shopsRole" style="width:210px;">
									<option value="3">运营商</option>
									<option value="4">会员用户</option>
								</select>
							</div>
						</dd>
					</dl>
					<dl>
						<dt><span>管理场馆</span></dt>
						<dd>
							<div class="fbox">
								<select class="selectStyle" style="width:210px;">
									<option selected="selected" >${shops[0].site.siteName}</option>
								</select>
							</div>
						</dd>
					</dl>
					<dl>
						<dt>&nbsp;</dt>
						<dd>
							<input type="submit" value="修改" class="button save"  />
						</dd>
					</dl>

				</form>
			</div>
		</div>
		<!--蒙板结束-->
		<script type="text/javascript">
			//上传弹窗
			$(function() {
				$("#upload").click(function() {
					//参数false代表文件不是图片
					up_load(true);
					//弹框
					mask(420, 270, true, "upfile");
				});

			});
			//表单验证   注意：文本提示的信息应在开始的时候全部写在placeholder中
			function checkForm() {
				var name = checkUserName();
				return name;
			}
			//验证姓名   
			function checkUserName() {
				var username = $("#userName");
				var usernameText=$("#userNameText");
				if(username.val() == "") {
					username.addClass("err");
					usernameText.text("姓名输入不能超过四个字符")
					usernameText.addClass("red");
					return false;
				} else {
					username.removeClass("err");
					return true;
				}
			}
		</script>

	</body>

</html>